import time

from appium import webdriver

desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '12'
desired_caps['deviceName'] = '127.0.0.1:7555'
# com.android.settings/com.android.settings.Settings
desired_caps['appPackage'] = 'io.appium.android.apis'
desired_caps['appActivity'] = 'io.appium.android.apis.ApiDemos'

driver = webdriver.Remote('http://localhost:4723/wd/hub',desired_caps)
time.sleep(3)
print("启动【设置】应用")

driver.quit()
